import request from '../utils/request'

const api_order = '/admin/order/order'

// 获取订单分页列表
export function getOrderInfoPage(pageNum, pageSize, data) {
  return request({
    url: `${api_order}/page/${pageNum}/${pageSize}`,
    method: 'get',
    data
  })
}

// 获取订单状态集合
export function getOrderInfoStatusList() {
  return request({
    url: `${api_order}/status`,
    method: 'get'
  })
}

// 根据id获取订单状态集合
export function getOrderInfoById(id) {
  return request({
    url: `${api_order}/get/${id}`,
    method: 'get'
  })
}

// 获取订单统计数量
export function getOrderInfoCount(data) {
  return request({
    url: `${api_order}/get/count`,
    method: 'post',
    data
  })
}
